package org.geom;

public class Point2D {

	public float x = 0;
	public float y = 0;
	
	public Point2D() {}
	public Point2D(float x, float y) {
		this.x = x;
		this.y = y;
	}
	
	public String toString() {
		return x+" - "+y;
	}
	public static float dist(float x1, float y1, float x2, float y2) {
		float dx = x1 - x2;
        float dy = y1 - y2;
        return (float) Math.sqrt(dx * dx + dy * dy);
	}
	
}
